package wq.gdky005.util;

import android.content.Context;
import android.util.DisplayMetrics;
import android.view.WindowManager;

public class UsualUtil {
	public static DisplayMetrics getAppWidthAndHeight(Context context) {
		// 这个可以用于1.5
		DisplayMetrics dm = new DisplayMetrics();
		WindowManager wm = (WindowManager) context
				.getSystemService(Context.WINDOW_SERVICE);
		wm.getDefaultDisplay().getMetrics(dm);
		return dm;
	}
}
